<template>
    <div>
        <!-- 全局组件 -->
        <AppBanner :list="list"></AppBanner>
    </div>
</template>

<script>
import {getBanner} from '@/api'
import { ref } from 'vue'
export default {
    // eslint-disable-next-line no-unused-vars
    setup(props) {
        const list = ref([]);
        getBanner().then(res=>{
            // console.log(res);
            if(res.msg === '操作成功'){
                list.value = res.result;
            }
        }).catch(err=>{
            console.log(err)
        })

        return {list}
    }
}
</script>
<style scoped lang='less'>
</style>